package day0228;

public class substringDemo {
    public static void main(String[] args) {
        String line ="www.tedu.com";
        String line1 =line.substring(line.indexOf(".")+1,line.lastIndexOf("."));
        System.out.println(line1);
    }


}
